package org.halk.controller;

import org.halk.entity.UserInfo;
import org.halk.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author halk
 * @date 2023/3/13
 */
@RestController
public class UserInfoController {

    @Autowired
    private UserInfoService userInfoService;

    @GetMapping("/str")
    public List<UserInfo> get() {

        return this.userInfoService.get();
    }
}
